﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Foundation
{

    /// <summary>
    /// 动作的描述特性。
    /// </summary>
    public class ActionAttribute : Attribute
    {
        /// <summary>
        /// 初始化 Marmat.Foundation.ActionAttribute 类的新实例。
        /// </summary>
        /// <param name="name"></param>
        public ActionAttribute(string name)
        {
            this.Name = name;
        }

        /// <summary>
        /// 初始化 Marmat.Foundation.ActionAttribute 类的新实例。
        /// </summary>
        /// <param name="name"></param>
        /// <param name="text"></param>
        public ActionAttribute(string name, string text)
        {
            this.Name = name;
            this.Text = text;
        }

        /// <summary>
        /// 动作的名称
        /// </summary>
        public string Name { get; }

        /// <summary>
        /// 动作标题
        /// </summary>
        public string Text { get; }
    }
}
